import { Component,OnInit,ElementRef } from '@angular/core';
//var skPlayer = require('skPlayer');
import {skPlayer} from 'skPlayer';
@Component({
  selector: 'musicBar',
  templateUrl: './music-bar.component.html',
  styleUrls: ['./music-bar.component.css']
})
export class MusicBarComponent implements OnInit{
    constructor(private elemmentRef:ElementRef){}
    ngOnInit(){
        var a = this.elemmentRef.nativeElement.querySelector('#skPlayer');
        var player = new skPlayer({
          element:a,
          autoplay: true,
          listshow: false,
          mode: 'listloop',
          music: {
            type: 'cloud',
            source: [472193120,446627093,508739377]//472193120,446627093,508739377
          }
        });
    }
}
